<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <title>用户中心</title>
    <link rel="stylesheet" type="text/css" href="../../static/news/css/reset.css">
    <link rel="stylesheet" type="text/css" href="../../static/news/css/main.css">
    <script type="text/javascript" src="../../static/news/js/jquery-1.12.4.min.js"></script>
    <script type="text/javascript" src="../../static/news/js/jquery.form.min.js"></script>
    <script src="../../static/news/tinymce/js/tinymce/tinymce.min.js"></script>
    <script src="../../static/news/js/tinymce_setup.js"></script>
{#    <script src="http://cdn.bootcss.com/tinymce/4.4.3/tinymce.min.js"></script>#}
    <script type="text/javascript" src="../../static/news/js/user_news_release.js"></script>
</head>

<body class="inframe_body">
<form action="news_release" method="POST" class="release_form">
    {#    <form class="release_form">#}
    <h3>新闻发布</h3>
    <input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
    <div class="form-group"><label>新闻标题：</label><input name="title" type="text" class="input_txt2"></input></div>
    <div class="form-group">
        <label>新闻分类：</label>
        <select name="category_id" class="sel_opt">
            {% for category in categorys %}
                <option value={{ category.id }}>{{ category.name }}</option>
            {% endfor %}
        </select>
    </div>
    <div class="form-group"><label>摘要：</label><textarea name="digest" class="input_multxt"></textarea></div>
    <div class="form-group"><label>上传图片：</label><input name="indeximage" type="file" class="input_file"></div>
    <div class="form-group">
        <label>内容：</label>
        <div class="fl"><input class="input_area" id="rich_content" name="content"></input></div>
    </div>
    <div class="form-group">
        <input type="submit" value="发 布" class="input_sub input_sub2">
    </div>
    <div class="error_tip2">错误提示</div>
</form>
<script>
    $(function () {
        //tinymce.init({
            //selector:'#rich_content',
            //height:300,
            //width:"100%"
        //});

        window.parent.fnSetIframeHeight(900);
    })
</script>
</body>
</html>